package cn.fuxue.hrms.common.entity;
import java.sql.Timestamp;
/**
 * @author 王文勇
 * @version 1.0
 * 工作流实体类
 */
public class WorkflowTemplate {
    // 主键
    private int id;
    // 模板名称
    private String templateName;
    // 业务类型
    private String businessType;
    // 描述
    private String description;
    // 备注
    private String remark;
    // 版本号
    private Integer version;
    // 起始节点 ID，外键关联 workflow_node 表的 id
    private Integer startNodeId;
    // 是否激活，1 表示激活，0 表示未激活
    private boolean isActive;
    // 最后修改人 ID
    private Integer modifyId;
    // 创建人 ID
    private Integer createId;
    // 是否删除，1 表示已删除，0 表示未删除
    private boolean isDeleted;
    // 创建时间
    private Timestamp createTime;

    // 无参构造函数
    public WorkflowTemplate() {
    }

    // 全参构造函数
    public WorkflowTemplate(int id, String templateName, String businessType, String description,
                            String remark, Integer version, Integer startNodeId, boolean isActive,
                            Integer modifyId, Integer createId, boolean isDeleted, Timestamp createTime) {
        this.id = id;
        this.templateName = templateName;
        this.businessType = businessType;
        this.description = description;
        this.remark = remark;
        this.version = version;
        this.startNodeId = startNodeId;
        this.isActive = isActive;
        this.modifyId = modifyId;
        this.createId = createId;
        this.isDeleted = isDeleted;
        this.createTime = createTime;
    }

    // Getter 和 Setter 方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getStartNodeId() {
        return startNodeId;
    }

    public void setStartNodeId(Integer startNodeId) {
        this.startNodeId = startNodeId;
    }

    public boolean isActive() {
        return isActive;
    }

    public void setActive(boolean active) {
        isActive = active;
    }

    public Integer getModifyId() {
        return modifyId;
    }

    public void setModifyId(Integer modifyId) {
        this.modifyId = modifyId;
    }

    public Integer getCreateId() {
        return createId;
    }

    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    public boolean isDeleted() {
        return isDeleted;
    }

    public void setDeleted(boolean deleted) {
        isDeleted = deleted;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "WorkflowTemplate{" +
                "id=" + id +
                ", templateName='" + templateName + '\'' +
                ", businessType='" + businessType + '\'' +
                ", description='" + description + '\'' +
                ", remark='" + remark + '\'' +
                ", version=" + version +
                ", startNodeId=" + startNodeId +
                ", isActive=" + isActive +
                ", modifyId=" + modifyId +
                ", createId=" + createId +
                ", isDeleted=" + isDeleted +
                ", createTime=" + createTime +
                '}';
    }
}
